JOGO DA VELHA
This Jogo da Velha is just a script in Java Script that possesses 462 lines exactly. Actually, he is not as a program, he is part of the page. That, if you lose, you will see the amount that the pages HTML is developing nowadays and they are smart. Of some five times that I played testing, I just won one!!!
This game works like this: when clicking in a button, he is verified it is in blank. If it is, he marks a X, it is verified it won, the page chooses the place, it marks a O and it is verified it already won. The page chooses the place to mark in that way: She chooses the first unoccupied place, unless you are about to close a game, when she impedes you.